<%@ tag dynamic-attributes="atts" 
%><%@ tag body-content="empty" 
%><%@ attribute name="id" required="true"  
%><%@ attribute name="label" required="false"  
%><%@ attribute name="keys"  required="true" type="java.lang.String" 
%><%@ attribute name="values"  required="false" type="java.lang.String" 
%><%@ attribute name="selected"  required="false" type="java.lang.String" 
%><%@ attribute name="selectedId"  required="false" type="java.lang.String" 
%><%@ attribute name="disabled"  required="false" type="java.lang.Boolean" 
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" 
%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" 
%><c:set var="sdisabled" value="" 
/><c:if test="${disabled}" ><c:set var="sdisabled" value="disabled='disabled'" /></c:if
><c:if test="${empty values}" >	<c:set var="values" value="${keys}" /> </c:if
><c:set var="akeys" value="${fn:split(keys, ',')}" 
/><c:set var="avalues" value="${fn:split(values, ',')}" 
/><c:if test="${!empty selectedId}" ><c:set var="selected" value="${akeys[selectedId]}" /></c:if
><c:if test="${!empty label}" >
<label ${sclass} for="${id}">${label}</label></c:if
><select id="${id}" name="${id}" ${sdisabled} <c:forEach var="at" items="${atts}"> ${at.key}='${at.value}' </c:forEach> >
	<c:forEach items="${akeys}" var="item" varStatus="status"><option value="${fn:trim(item)}"  ${item==selected?"selected":""}>${avalues[status.count-1]}</option>
	</c:forEach>	
</select>